package com.blogspot.radialmind;

public class FloatTerm implements ITerm {
	private Float value;
	
	public FloatTerm( String buffer ) {
		this.value = Float.valueOf( buffer );
	}
	
	public float toFloat() {
		return value.floatValue();
	}
	
	public String toString() {
		return value.toString();
	}
	
	public int toInteger() {
		throw new RuntimeException( "Expected integer term, is float: " + toString() );
	}
}
